#include "DataExportCellVisitor.h"

namespace jm4bbx {


	DataExportCellVisitor::DataExportCellVisitor(DataExportTarget* box) : box_(box) 
		, row_(0)
		, col_(0) {

	}

	void DataExportCellVisitor::visit(BoxDataTable::ValueCell<int>* val) {
		box_->setData(col_, row_, val->getValue());
	}

	void DataExportCellVisitor::visit(BoxDataTable::ValueCell<std::string>* val) {
		box_->setData(col_, row_, val->getValue());
	}

} // namespace jm4bbx
